-- sum function, use a globals valriables

-- m3 variable give  a solved values ...
function sdpassum.sum()

	-- check if is possible sum the two matrix
	if(lm1 == lm2 and cm1 == cm2) then

		-- aloc memory to set results ...
		alocm3(lm1,cm1)

		for i=1,lm1 do
			for j=1,cm1 do
				m3[i][j] = m1[i][j] + m2[i][j]
			end
		end
	
	end -- of test of matrix size is the same

end
